ams.block("customerTableBlock", {
    "type": "table",
    "resource": {
        "api": {
            "prefix": "https://www.yournana.club/vipshop/",
            "list": "table"
        },
        "fields": {
            "id": {
                "type": "text",
                "label": "序号",
                "on": {
                    "change": function() {
                        for (var e = arguments.length, t = new Array(e), a = 0; a < e; a++) t[a] = arguments[a];
                        console.log("text change", t, this)
                    }
                }
            },
            "grade1": {
                "type": "text",
                "label": "一级品类",
                "rules": [{
                    "required": true,
                    "message": "请输入活动名称",
                    "trigger": "blur"
                }, {
                    "min": 3,
                    "max": 5,
                    "message": "长度在 3 到 5 个字符",
                    "trigger": "blur"
                }],
                "props": {
                    "suffix-icon": "el-icon-service"
                }
            },
            "grade2": {
                "type": "text",
                "label": "二级品类"
            },
            "day1": {
                "type": "text",
                "label": "第1天"
            },
            "day2": {
                "type": "text",
                "label": "第2天"
            },
            "day3": {
                "type": "text",
                "label": "第3天"
            },
            "day4": {
                "type": "text",
                "label": "第4天"
            },
            "day5": {
                "type": "text",
                "label": "第5天"
            },
            "day6": {
                "type": "text",
                "label": "第6天"
            },
            "day7": {
                "type": "text",
                "label": "第7天"
            },
            "week": {
                "type": "text",
                "label": "前7天"
            }
        }
    },
    "ctx": "view",
    "sorts": {
        "id": true,
        "week": true
    },
    "searchs": {
        "id": true,
        "grade1": true
    },
    "data": {
        "list": [],
        "pageSize": 10
    },
    "options": {
        "span-merge": {
            "grade1": true,
            "grade2": true
        },
        "expand-row": {
            "valueKey": "rowchildren",
            "remoteConfig": {
                "action": "https://www.yournana.club/vipshop/table-expand",
                "queryName": "chidTableId",
                "queryValue": "id"
            }
        },
        "table-column": [{
            "label": "序号",
            "name": "id"
        }, {
            "label": "",
            "children": [{
                "label": "一级品类",
                "name": "grade1",
                "slot-header": {
                    "type": "tooltip",
                    "content": "这里是一级品类信息<br/>第二行信息"
                }
            }, {
                "label": "二级品类",
                "name": "grade2",
                "slot-header": {
                    "type": "tooltip",
                    "content": "这里是二级品类信息<br/>第二行信息"
                }
            }]
        }, {
            "label": "收入",
            "slot-header": {
                "type": "tooltip",
                "content": "提示框信息<br/>第二行信息"
            },
            "children": [{
                "label": "第1天",
                "name": "day1"
            }, {
                "label": "第2天",
                "name": "day2"
            }, {
                "label": "第3天",
                "name": "day3"
            }, {
                "label": "第4天",
                "name": "day4"
            }, {
                "label": "第5天",
                "name": "day5"
            }, {
                "label": "第6天",
                "name": "day6"
            }, {
                "label": "第7天",
                "name": "day7"
            }, {
                "label": "前7天",
                "name": "week",
                "slot-header": {
                    "type": "collapse",
                    "collapseColumn": ["day1", "day2", "day3", "day4", "day5", "day6", "day7"]
                }
            }]
        }]
    },
    "on": {
        "cell-click": function(e, t, a, n) {},
        "header-click": function(e, t) {}
    },
    "events": {
        "init": "@list"
    }
});